package com.adee.gulimall.product.vo;

import com.adee.gulimall.product.entity.SkuImagesEntity;
import com.adee.gulimall.product.entity.SkuInfoEntity;
import com.adee.gulimall.product.entity.SpuInfoDescEntity;
import lombok.Data;
import lombok.ToString;

import java.util.List;

/**
 * 商品详情
 */
@ToString
@Data
public class SkuItemVo {
    // 1. sku基本信息 pms_sku_info
    private SkuInfoEntity info;

    private boolean hasStock; // 是否有货

    // 2. sku图片信息 pms_sku_images
    private List<SkuImagesEntity> images;

    // 3. spu销售属性组合
    private List<SkuItemSaleAttrVo> saleAttr;

    // 4. spu介绍
    private SpuInfoDescEntity desc;

    // 5. spu规格参数信息
    private List<SpuItemAttrGroupVo> groupAttrs;


}
